Optimal. Leaf size=40 \[ \sqrt {c x-1} \sqrt {c x+1}+\tan ^{-1}\left (\sqrt {c x-1} \sqrt {c x+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {460, 92, 205} \[ \sqrt {c x-1} \sqrt {c x+1}+\tan ^{-1}\left (\sqrt {c x-1} \sqrt {c x+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 92
Rule 205
Rule 460
Rubi steps
\begin {align*} \int \frac {1+c^2 x^2}{x \sqrt {-1+c x} \sqrt {1+c x}} \, dx &=\sqrt {-1+c x} \sqrt {1+c x}+\int \frac {1}{x \sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=\sqrt {-1+c x} \sqrt {1+c x}+c \operatorname {Subst}\left (\int \frac {1}{c+c x^2} \, dx,x,\sqrt {-1+c x} \sqrt {1+c x}\right )\\ &=\sqrt {-1+c x} \sqrt {1+c x}+\tan ^{-1}\left (\sqrt {-1+c x} \sqrt {1+c x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 56, normalized size = 1.40 \[ \frac {c^2 x^2+\sqrt {c^2 x^2-1} \tan ^{-1}\left (\sqrt {c^2 x^2-1}\right )-1}{\sqrt {c x-1} \sqrt {c x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.24, size = 39, normalized size = 0.98 \[ \sqrt {c x + 1} \sqrt {c x - 1} + 2 \, \arctan \left (-c x + \sqrt {c x + 1} \sqrt {c x - 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 40, normalized size = 1.00 \[ \sqrt {c x + 1} \sqrt {c x - 1} - 2 \, \arctan \left (\frac {1}{2} \, {\left (\sqrt {c x + 1} - \sqrt {c x - 1}\right )}^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 53, normalized size = 1.32 \[ \frac {\sqrt {c x -1}\, \sqrt {c x +1}\, \left (-\arctan \left (\frac {1}{\sqrt {c^{2} x^{2}-1}}\right )+\sqrt {c^{2} x^{2}-1}\right )}{\sqrt {c^{2} x^{2}-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 23, normalized size = 0.58 \[ \sqrt {c^{2} x^{2} - 1} - \arcsin \left (\frac {1}{c {\left | x \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.65, size = 72, normalized size = 1.80 \[ \sqrt {c\,x-1}\,\sqrt {c\,x+1}-\ln \left (\frac {{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {c\,x+1}-1\right )}^2}+1\right )\,1{}\mathrm {i}+\ln \left (\frac {\sqrt {c\,x-1}-\mathrm {i}}{\sqrt {c\,x+1}-1}\right )\,1{}\mathrm {i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 30.11, size = 148, normalized size = 3.70 \[ \frac {{G_{6, 6}^{6, 2}\left (\begin {matrix} - \frac {1}{4}, \frac {1}{4} & 0, 0, \frac {1}{2}, 1 \\- \frac {1}{2}, - \frac {1}{4}, 0, \frac {1}{4}, \frac {1}{2}, 0 & \end {matrix} \middle | {\frac {1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} - \frac {{G_{6, 6}^{5, 3}\left (\begin {matrix} \frac {3}{4}, \frac {5}{4}, 1 & 1, 1, \frac {3}{2} \\\frac {1}{2}, \frac {3}{4}, 1, \frac {5}{4}, \frac {3}{2} & 0 \end {matrix} \middle | {\frac {1}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} + \frac {i {G_{6, 6}^{2, 6}\left (\begin {matrix} -1, - \frac {3}{4}, - \frac {1}{2}, - \frac {1}{4}, 0, 1 & \\- \frac {3}{4}, - \frac {1}{4} & -1, - \frac {1}{2}, - \frac {1}{2}, 0 \end {matrix} \middle | {\frac {e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} + \frac {i {G_{6, 6}^{2, 6}\left (\begin {matrix} 0, \frac {1}{4}, \frac {1}{2}, \frac {3}{4}, 1, 1 & \\\frac {1}{4}, \frac {3}{4} & 0, \frac {1}{2}, \frac {1}{2}, 0 \end {matrix} \middle | {\frac {e^{2 i \pi }}{c^{2} x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________